<?php

namespace deleteModel;

class DeleteModel{
	private $con;
	
	public function __construct(){
			
		$this->con = mysqli_connect("10.101.1.88", "167620_mz14316", "Asd33e5fg", "167620-benny");
	
		// Check connection
		if (mysqli_connect_errno())
		{
		echo "Failed to connect to MySQL: " . mysqli_connect_error();
		}	
	}
	
	//deletes comments in database
	public function commentDelete($unique){
		mysqli_query($this->con,"DELETE FROM comments WHERE UniqueId='$unique'");
		mysqli_close($this->con);
	}
	
}